package com.easy.service;

import com.easy.bean.Rooms;
import com.easy.util.Page;

import java.util.List;
import java.util.Map;

public interface IRooms {
    Rooms getRooms(int id);

    int delRooms(int id);

    //修改
    int editRooms(Rooms rooms);

    int editRooms_check(Rooms rooms);

    //查询
    List<Rooms> getSearchRooms(Rooms rooms, Page page);

    //查询空闲
    List<Rooms> findfreeRooms(Rooms rooms);

    int getCount(Rooms rooms);


    //图表
    List<Rooms> getAllRooms();
    Map<String, Integer> getRoomStatusCounts(Rooms rooms);
}
